﻿<!--
	@create by 
	@update by 
	@description 
-->
<div>
	<el-form-q :field-data="queryFields" :buttons="queryButtons" ref="form"></el-form-q>
  <div class="yu-toolBar">
    <el-button-group>
      <el-button icon="plus" @click="addFn" v-if="checkPermission('create')">新增</el-button>
      <el-button icon="edit" @click="modifyFn" v-if="checkPermission('edit')">修改</el-button>
      <el-button icon="document" @click="infoFn" v-if="checkPermission('detail')">查看</el-button>
      <el-button icon="yx-bin" @click="deleteFn" v-if="checkPermission('delete')">删除</el-button>
      <el-button icon="yx-file-excel" @click="exportFn" v-if="checkPermission('export')">导出</el-button>
    </el-button-group>
  </div>
  <el-table-x ref="reftable" :row-index="true" :base-params="baseParams"
        :data-url="RscAdjustAppUrl" :table-columns="tableColumns" :request-type="'POST'"></el-table-x>

  <el-dialog-x title="" :visible.sync="dialogVisible" size="full">
    <el-tabs type="border-card" v-model="baseTab">
      <el-tab-pane label="风险分类调整" name="baseTab" >

        <el-collapse v-model="expandCollapseName" ref='basecollapse'>

          <el-collapse-item title="借据选择" name="taskLoan" >
            <el-form-q :field-data="taskLoanQueryFields" :buttons="updateButtons" ref="queryFm"></el-form-q>
            <el-table-x ref="taskLoanTable" :row-index="true" :base-params="baseParams" @row-dblclick="rowClickFn" :default-load="false"
                        :data-url="RscTaskLoanUrl" :table-columns="taskLoanTableColumns" :request-type="'POST'">
            </el-table-x>
          </el-collapse-item>

          <el-collapse-item title="申请基本信息" name="applyInfo">
            <el-form-x ref="applyInfoRef"
                       :group-fields="updateFields" :buttons="opButtons"
                       :disabled="formDisabled" label-width="80px">
            </el-form-x>
          </el-collapse-item>

        </el-collapse>

      </el-tab-pane>

    </el-tabs>
  </el-dialog-x>
</div>
